package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Reply;
import tech.aistar.mapper.ReplyMapper;
import tech.aistar.service.IReplyService;

import java.util.List;


@Service
public class ReplyImpl implements IReplyService {
    @Autowired
    private ReplyMapper replyMapper;
    @Override
    public List<Reply> selectAll() {
        return replyMapper.selectAll();
    }

    @Override
    public void insert(Reply reply) {
replyMapper.insert(reply);
    }

    @Override
    public void updateByPrimaryKey(Reply reply) {
replyMapper.updateByPrimaryKey(reply);
    }

    @Override
    public void deleteByPrimaryKey(Reply reply) {
replyMapper.deleteByPrimaryKey(reply);
    }
}
